package com.lvyuely.common.web.core.pojo;


/**
 * Simple to Introduction
 * <pre>
 * <b>项目</b> :  member-center-base
 * <b>包名</b> :  glodon.gcj.member.center.pojo
 * <b>类名</b> :  AbstractVO
 * <b>描述</b> :
 * <b>版权</b> :  Copyright (c) 1999-2014 广联达软件股份有限公司
 * </pre>
 *
 * @author :   lvyue
 * @version :  1.0
 * @date :     14/11/19 19:30
 */
public abstract class AbstractVO {

    private Long id;

    private int page = 1;

    private int size = 20;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public <T> Page<T> transport() {
        Page<T> _page = new Page<T>();
        _page.setCurrent(this.page);
        _page.setSize(this.size);
        return _page;
    }
}
